package com.atguigu.edu.realtime.publisher.service.impl;

import com.atguigu.edu.realtime.publisher.bean.VideoPlayCnt;
import com.atguigu.edu.realtime.publisher.mapping.VideoPlayChapterCountMapper;
import com.atguigu.edu.realtime.publisher.service.VideoPlayChapterCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoPlayChapterCountServiceImpl implements VideoPlayChapterCountService {
    @Autowired
    VideoPlayChapterCountMapper videoPlayChapterCountMapper;
    @Override
    public List<VideoPlayCnt> getVideoPlayCnt(Integer date) {
        return videoPlayChapterCountMapper.selectVideoPlayCnt(date);
    }
}
